package com.leadingsoft.pwxk.converter;

import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.leadingsoft.common.converter.AbstractConverter;
import com.leadingsoft.pwxk.dto.WaterDrainDto;
import com.leadingsoft.pwxk.model.WaterDrain;

@Component
public class WaterDrainConverster extends AbstractConverter<WaterDrain, WaterDrainDto> {

	@Autowired
	private WaterDrainInfoConverter waterDrainInfoConverter;

	@Autowired
	private WaterDrainInfoPuConverter waterDrainInfoPuConverter;
	@Autowired
	private WaterNormConverter waterNormConverter;

	@Override
	protected WaterDrainDto toDtoActual(WaterDrain model) {
		WaterDrainDto dto = new WaterDrainDto();

		dto.setDataid(model.getDataid());
		dto.setId(model.getId());
		BeanUtils.copyProperties(model, dto);

		return dto;
	}

	@Override
	public void copyProperties(WaterDrain model, WaterDrainDto dto) {

	}

}
